package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Dic;
import cn.wolfcode.crm.domain.PromissGroup;
import cn.wolfcode.crm.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PromissGroupMapper {
    int deleteByPrimaryKey(Long id);

    int insert(PromissGroup entity);

    PromissGroup selectByPrimaryKey(Long id);

    List<PromissGroup> selectAll();

    int updateByPrimaryKey(PromissGroup entity);

    int query4Count(QueryObject qo);

    List<Dic> query4List(QueryObject qo);

    void updateByPromissgroup(@Param("primisenmae") String primisenmae, @Param("ids") Long ids);

    //更改状态
    void changeState(Long id);

    PromissGroup selectByPromiseId(Long id);

}